package com.zjw.demo.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @Author:zhaojiawei
 * @Date: 2023/3/20 15:16
 */
@TableName("books")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Books {

    @TableId(value = "bookId")//, type = IdType.AUTO
    private String bookId;

    @TableField(value = "bookName")
    private String bookName;

    @TableField(value = "bookCount")
    private String bookCount;

    @TableField(value = "detail")
    private String detail;

    @TableField(value = "issueDate")
    private LocalDateTime time;
}
